package com.buka.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "tb_task")
@Data
public class Task implements Serializable {
    /**
     * 任务id
     */
    @Id
    private Long id;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "delete_time")
    private Date deleteTime;

    /**
     * 任务类型
     */
    @Column(name = "task_type")
    private String taskType;

    /**
     * 交换机名称
     */
    @Column(name = "mq_exchange")
    private String mqExchange;

    /**
     * routingkey
     */
    @Column(name = "mq_routingkey")
    private String mqRoutingkey;

    /**
     * 任务请求的内容
     */
    @Column(name = "request_body")
    private String requestBody;

    /**
     * 任务状态
     */
    private String status;

    /**
     * 任务错误信息
     */
    private String errormsg;
}
